<?xml version="1.0" encoding="utf-8"?>
<!-- DWXMLSource="http://www.facturacion.com/CFD/GOGS790730345/A/00168/GOGS790730345-A-00168.pdf.xml" -->
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version = '1.0'
    xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
    xmlns:cfd='http://www.sat.gob.mx/cfd/2'>
  <xsl:output method = "html" />
  <xsl:decimal-format name="dollar"
decimal-separator="." grouping-separator=","/>
  <xsl:template match="//cfd:Comprobante">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title><xsl:value-of select="//cfd:Emisor/@rfc"/>_<xsl:value-of select="@serie"/>_<xsl:value-of select="@folio"/></title>
    <link href="/xsl/cfd/960_24_col.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="/xsl/cfd/wlm.css" />
    </head>
    
    <body>
    <div class="container_24" style="padding-top:140px;">
      <div class="grid_4 alpha" >
        <div> <img src="/xsl/cfd/logowlmfactura.png"  style="width:150px;"/>
        </div>
        <div style="text-align:center; height:550px;"><br />
<span style="font-family:Arial Rounded MT Bold; font-size:15px; font-weight:bold;">info@<span style="color:#6C3;">wlm</span>.com.mx</span> </div>
        <div> <img src="/xsl/cfd/codigoBB.png" style="width:150px;"/> </div>
      </div>
      <div class="grid_20 omega">
        <div>
          <div id="Emisor" style="margin-bottom:15px;">
          <div><strong id="LogoText">web<span>logs</span>mexico.<span>com</span> </strong></div>
          <div>
            R.F.C.: <xsl:value-of select="//cfd:Emisor/@rfc"/></div>
            <div>
            <span style="text-transform:uppercase;"><xsl:value-of select="//cfd:Emisor/@nombre"/></span></div>
            <div>
            <xsl:apply-templates select="//cfd:DomicilioFiscal"/></div>
            
          </div>
        </div>
        <div class="esquinas grid_14 alpha grande">
          <div class="interno">
          <xsl:apply-templates select="//cfd:ExpedidoEn"/>&#160;
          
            <xsl:call-template name="FormatDate">
              <xsl:with-param name="DateTime" select="@fecha"/>
              
            </xsl:call-template>
          </div>
        </div>
        <div class="esquinas grid_6 omega grande">
          <div class="interno"><span class="verde">FACTURA</span> &#160;&#160;&#160;<xsl:value-of select="@serie"/>&#160;<xsl:value-of select="@folio"/> </div>
        </div>
        <hr class="grid_20 alpha omega" style="margin-top:15px; margin-bottom:15px;"/>
        <div class="esquinas grid_20 alpha omega">
          <div class="interno">
              <div>cliente</div>
              <div>
                Nombre: <strong> <xsl:value-of select="cfd:Receptor/@nombre"/></strong></div>
                <div>R.F.C.: <strong><xsl:value-of select="cfd:Receptor/@rfc"/></strong></div>
                
                <div style="display:table;">
                <div style="float:left; margin-right:4px;">Direccion: </div><div  style="float:left;"><xsl:apply-templates select="//cfd:Domicilio"/></div>
                </div>
            </div>
        </div>
        
        <div class="esquinas grid_20 alpha omega grande" style="border:none;margin-bottom:10px; margin-top:10px;">
        <div class="interno2" style="width:780px;">
        	<div class="grid_2 alpha">Cant.</div><div class="grid_10">Descripcion</div><div class="grid_3" style="text-align:center">Precio</div><div  style="text-align:center" class="grid_4 omega">Importe</div>
            </div>
        </div>
        
        
        <div class="esquinas grid_20 alpha omega conceptos">
        <div class="interno" style="display:table;">
            
            <xsl:apply-templates select="//cfd:Concepto"/>
        
        <xsl:for-each select="Concepto">
        </xsl:for-each>
        
            
            
        </div>
        </div>
        
        <div class="grid_20 alpha omega" style="margin-bottom:15px;">
        
        <div class="grid_10 alpha" >
        <div style="margin:15px;">
        Importe total con letra:
        </div>
        <div class="grid_10 alpha omega esquinas">
        <div class="interno" style="height:60px;">
                	<xsl:value-of select="Impresion"/> M.N.
                    </div>
                </div>
        </div>
        
         <div class="grid_10 omega">
         	<div class="desgloseTotal">
                <div class="grid_5 alpha totales ">
                <div class="leyenda">
                Sub Total</div>
                </div>
                <div class="grid_5 omega esquinas ">
                	<div class="interno totales">
                		<strong><xsl:value-of select="format-number(@subTotal, '$ #,##0.00','dollar')"/></strong>
                    </div>
                </div>
            </div>
            <xsl:if test="@descuento>0">
             <div class="desgloseTotal">
                <div class="grid_5 alpha totales ">
                <div class="leyenda">
                Desc. <xsl:value-of select="@descuento"/>%</div>
                </div>
                <div class="grid_5 omega esquinas">
                	<div class="interno totales">
                		<strong><xsl:value-of select="format-number(((@descuento div 100)*@subTotal), '$ #,##0.00','dollar')"/>
                        </strong>
                    </div>
                </div>
            </div>
            </xsl:if>
            <div class="desgloseTotal">
                <div class="grid_5 alpha totales ">
                <div class="leyenda">
                I.V.A.</div>
                </div>
                <div class="grid_5 omega esquinas">
                	<div class="interno totales">
                		<strong><xsl:apply-templates select="//cfd:Traslado"/>
                        </strong>
                    </div>
                </div>
            </div>
            <div class="desgloseTotal">
                <div class="grid_5 alpha totales">
                <div class="leyenda">
                Total
                </div>
                </div>
                <div class="grid_5 omega esquinas">
                	<div class="interno totales">
                		<strong><xsl:value-of select="format-number(@total, '$ #,##0.00','dollar')"/></strong>
                    </div>
                </div>
            </div>
        </div>
        </div>
        
      </div>
      
      
      <div class="grid_24 alpha omega interno2" style="font-size:12px;">
      <img src="/xsl/cfd/grafoInferior.png" align="left"/>
      <span>
      <div>La reproducción apócrifa de este comprobante constituye un delito en los términos de las disposiciones fiscales</div>
<div>
     <b> No. de Aprobacion SICOFI 22182341 Folios 1-300</b></div>
      <div>
      "Pago en una sola exhibicion" - "Efectos fiscales al pago"</div>
      <div style="font-size:11px;">
Este comprobante tendrá una vigencia de dos años contados a partir de la fecha de aprobación de la asignación de folios, la cual es 25/07/2011</div>
      </span>
      </div>
      
    </div>
    </body>
    </html>
    
  </xsl:template>
  
  
  <xsl:template match="//cfd:Traslado">
  <xsl:value-of select="format-number(@importe, '$ #,##0.00','dollar')"/>
  </xsl:template>
  
  <xsl:template match="//cfd:Concepto">
    <div class="grid_19 alpha omega concepto">
                <div class="grid_2 alpha cantidad"><xsl:value-of select="@cantidad"/></div>
                <div class="grid_10">[<xsl:value-of select="@noIdentificacion"/>] <xsl:value-of select="@descripcion"/></div>
                <div class="grid_3 precio"><xsl:value-of select="format-number(@valorUnitario, '#,##0.00','dollar')"/></div>
                <div class="grid_4 omega importe"><xsl:value-of select="format-number(@importe, '#,##0.00','dollar')"/></div>
            </div>
      
  </xsl:template>
  
  <xsl:template match="//cfd:DomicilioFiscal">
    <xsl:value-of select="@calle"/>&#160;<xsl:value-of select="@noExterior"/> Col. <xsl:value-of select="@colonia"/><br />
    <xsl:value-of select="@municipio"/>, <xsl:value-of select="@estado"/>, 
    <xsl:if test="@codigoPostal">
      <xsl:value-of select="@codigoPostal"/>
    </xsl:if>
  </xsl:template>
  
  <xsl:template match="//cfd:ExpedidoEn">
    <xsl:value-of select="@municipio"/>, <xsl:value-of select="@estado"/> 
  </xsl:template>
  
   <xsl:template match="//cfd:Domicilio">
   <b>
    <xsl:value-of select="@calle"/> # <xsl:value-of select="@noExterior"/>
    <xsl:if test="@noInterior">
    <xsl:value-of select="@noInterior"/>
    </xsl:if>
    <br />
    <xsl:value-of select="@colonia"/><br />
    <xsl:value-of select="@municipio"/>, <xsl:value-of select="@estado"/>, C.P.      <xsl:value-of select="@codigoPostal"/></b>
   
  </xsl:template>
  
  <xsl:template name="FormatDate">
    <xsl:param name="DateTime" />
    <xsl:variable name="year" select="substring($DateTime,1,4)" />
    <xsl:variable name="month-temp" select="substring-after($DateTime,'-')" />
    <xsl:variable name="month" select="substring-before($month-temp,'-')" />
    <xsl:variable name="day-temp" select="substring-after($month-temp,'-')" />
    <xsl:variable name="day" select="substring($day-temp,1,2)" />
    <xsl:variable name="time" select="substring-after($DateTime,'T')" />
    <xsl:variable name="hh" select="substring($time,1,2)" />
    <xsl:variable name="mm" select="substring($time,4,2)" />
    <xsl:variable name="ss" select="substring($time,7,2)" />
    
    <!-- Long DATE FORMAT -->
    
    <xsl:value-of select="$day"/><xsl:value-of select="' de '"/><!--January -->
    <!--January 12 -->
    <xsl:choose>
      <xsl:when test="$month = '1' or $month= '01'">
        Enero
      </xsl:when>
      <xsl:when test="$month = '2' or $month= '02'">
        Febrero
      </xsl:when>
      <xsl:when test="$month= '3' or $month= '03'">
        Marzo
      </xsl:when>
      <xsl:when test="$month= '4' or $month= '04'">
        Abril
      </xsl:when>
      <xsl:when test="$month= '5' or $month= '05'">
        Mayo
      </xsl:when>
      <xsl:when test="$month= '6' or $month= '06'">
        Junio
      </xsl:when>
      <xsl:when test="$month= '7' or $month= '07'">
        Julio
      </xsl:when>
      <xsl:when test="$month= '8' or $month= '08'">
        Agosto
      </xsl:when>
      <xsl:when test="$month= '9' or $month= '09'">
        Septiembre
      </xsl:when>
      <xsl:when test="$month= '10'">
        Octubre
      </xsl:when>
      <xsl:when test="$month= '11'">
        Noviembre
      </xsl:when>
      <xsl:when test="$month= '12'">
        Diciembre
      </xsl:when>
    </xsl:choose>
    <xsl:value-of select="' de'"/><!--January 12,-->
    <xsl:value-of select="' '"/><!--January 12, -->
    <xsl:value-of select="$year"/><!--
    <xsl:value-of select="' a las '"/><xsl:value-of select="$hh"/><xsl:value-of select="':'"/><xsl:value-of select="$mm"/><xsl:value-of select="':'"/><xsl:value-of select="$ss"/>January 12, 2001-->
    <!-- END: Long DATE FORMAT -->
    
  </xsl:template>
</xsl:stylesheet>